/**
 * Copyright [2012-2013] [Guðmundur Björn Birkisson]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. Copyright [2012-2013] [Guðmundur Björn Birkisson]
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * ---------------------------------------------------------------------------
 * 
 * Class name:  RDBuiltIn
 * 
 * Description of class:
 * 
 * Helper class to list builtin functions of the language.
 * 
 */

package karel.lang.newParserTools;


public class RDBuiltIn {
    
    public static class Function {
        
        public String name;
        public int nrOfargs;
        
        public Function(String name, int nrOfargs) {
            this.name = name;
            this.nrOfargs = nrOfargs;
        }
        
    }
    
    public static final Function[] functions = { 
        new Function("OR",2) ,
        new Function("AND",2) ,
        new Function("!=",2) ,
        new Function("==",2) ,
        new Function("<",2)  ,
        new Function("<=",2) ,
        new Function(">",2)  ,
        new Function(">=",2) ,
        new Function("+",2)  ,
        new Function("-",2)  ,
        new Function("*",2)  ,
        new Function("/",2)  ,
        new Function("%",2)  ,
        new Function("^",2)  ,
        new Function("-",1)  ,  
        new Function("!",1)  ,
        new Function("newPlus",2)  ,
        new Function("prenta",1),
        new Function("áfram",0),
        new Function("veggur",0),
        new Function("útgangur",0),
        new Function("vinstri",0),
        new Function("hægri",0),
        new Function("kassi",0),
        new Function("takakassa",0),
        new Function("setjakassa",0),
        new Function("átt",0),
        new Function("hnitx",0),
        new Function("hnity",0),
        new Function("stopp",0),
        new Function("heil",1)
    };
}
